<form action="<?php echo $this->escape($this->element->getAction()) ?>"
      method="<?php echo $this->escape($this->element->getMethod()) ?>" class="form-horizontal">
<fieldset>
  <legend><?php echo $this->translate('Connexion to the web site'); ?></legend>
	<div class="control-group">
	  <?php foreach($this->element as $element): ?>
			<?php echo $this->formLabel($element->getName(),$this->translate($element->getLabel()),array('class' => 'control-label')); ?>
       		<div class="controls">	
      		<?php echo $this->{$element->helper}(
                         $element->getName(),
                         $element->getValue(),
                         $element->getAttribs(),
                         (method_exists($element,'getMultiOptions')) ? $element->getMultiOptions() : ''
     		) ?>
     		<?php 	//$this->formErrors->setElementStart('<span class="label label-important">');
     				//$this->formErrors->setElementSeparator(' / ');
     				//$this->formErrors->setElementEnd('</span>');
      				$formErrors = $this->getHelper('formErrors');
      				$formErrors	->setElementStart('<div class="foobar errors">')
      							->setElementSeparator('<br />')
      							->setElementEnd('</div>');
     		 echo $er = $this->formErrors($element->getMessages()); ?>
      		</div>
	    	<br>
		
	  <?php endforeach; ?>
	  <div class="form-actions">
	  <input type="submit" class="btn btn-primary" value="<?php echo $this->translate('Register'); ?>" />
	  </div>
	  </div>
		
</fieldset>
</form>